package com.fafa.tankgame03;

public class Bomb {
    //炸弹坐标
    int x, y;
    //生命周期
    int life = 9;
    //存活
    boolean isLive = true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    //减少生命值
    public void lifeDown() {
        if (life > 0) life--;
        else isLive = false;
    }
}
